package com.iris.live.services.data.repositories;

import com.iris.live.services.data.models.TVehicleModelMapModel;
import com.iris.live.services.data.models.TVehicleModelMapModelPK;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

/**
 * Created by lusong on 2017/4/6.
 */
public interface TVehicleModelMapRepository extends JpaRepository<TVehicleModelMapModel, TVehicleModelMapModelPK>, JpaSpecificationExecutor<TVehicleModelMapModel> {

    @Query("select a from TVehicleModelMapModel a where a.venderId = ?1")
    List<TVehicleModelMapModel> queryModelByVenderId(String venderId);
}
